<div class="col-sm-10 col-md-offset-1">
  <div class="panel panel-primary">
    <div class="panel-heading">
      <h3 class="panel-title">通知详情</h3>
    </div>
  
    <div class="panel-body">
      <div class="notice_head">
          <h3><%= @notice.title %></h3>
          <span class="glyphicon glyphicon-calendar">
                <%= @notice.created_at.strftime('%Y年%m月%d日 %H:%M') %>
              </span>
          <span class="glyphicon glyphicon-user">
                国科大教务部
              </span>
          <% if admin_logged_in? %>
          <span class="glyphicon glyphicon-pencil">
                <%= link_to '编辑', "/admin/notice/#{@notice.id}/edit" %>
              </span>
          <% end %>
        </div>
        <p><%= @notice.content %></p>
    </div>
  </div>
</div>